import { _decorator, Component, Node, Label } from "cc";
import { shuffle } from "radash";

const { ccclass, property } = _decorator;

@ccclass("label")
export class label extends Component {
  start() {
    let arr = [1, 2, 3, 4, 5];
    let randomArr = shuffle(arr);
    console.log("randomArr", randomArr);
    const [a, b, ...rest] = randomArr;
    console.log("a,b", a, b);
  }

  update(deltaTime: number) {}
}
